package com.restaurant.application.util.wx;

public class WxConfig {
    public static String CODE2SESSION_URL =
            "https://api.weixin.qq.com/sns/jscode2session?appid=APPID&secret=SECRET&js_code=JSCODE";
    /**
     * 小程序
     */
//    public static String APPID2 = "wx7dc72230d0707ea3";
//
//    public static String SECRET2 = "12f08793ba1ec38d0e7defeb1be82e73";
    /**
     * B_LING小程序
     */
    public final static String APPID2 = "wx04b058cb0005d3ae";
    public final static String SECRET2 = "4085fd9bfff90cc69361c211a67a20f5";
    /**
     * APP
     */
    public final static String APPID = "wx8aebeea623ad6c08";

    public final static String APPSECRET = "f74b684a4907903a37ceb27c96a95c9e";
    /**
     * 公众号
     */
    public final static String OFF_APPID = "wx183d3dd1a03ca986";

    public final static String OFF_APPSECRET = "3d2c6d1f26dfefc247a0210cfa5d65af";

    public final static String MCH_ID = "1514283471";

    public final static String KEY = "2a24eaeabd6611e8a355529269fb1459";

    public final static String SERVER_TOKEN = "8c8b9e9310f343d3a2c288b0983b726f";

    public final static String SERVER_ENCODING = "ktgMIJsjaB8hIO6UigMXwLwAHMfwA6n9hH1gSlz0FVQ";

    /*-----------------------------------PC端------------------------------------ */

    //授权作用域(网页应用目前仅填写snsapi_login)
    public final static String SCOPE = "snsapi_login";

    public static final String DEFAULT_CHARACTER_ENCODING = "UTF-8";

    public static final String GET_METHOD = "GET";

    public static final String POST_METHOD = "POST";

    /**
     * 微信请求地址
     */
    //获取code 接口地址 Get
    public final static String WEB_CODE_URL = "https://open.weixin.qq.com/connect/qrconnect?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect";

    //微信回调地址(获取code)
    public final static String REDIRECT_URI = "https://api.blingblingstar.com/paying/wechat/NotifyNotice";


    /*-----------------------------------PC端 & 移动端------------------------------------ */
    //获取access_token 接口地址   Get
    public final static String ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=SECRET";

    //刷新或续期access_token 接口地址   Get
    public final static String REFRESH_TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/refresh_token?appid=APPID&grant_type=refresh_token&refresh_token=REFRESH_TOKEN";

    //获取userinfo 接口地址   Get
    public final static String WECHAT_USERINFO_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";


    //app 预支付请求地址
    public final static String APP_PAY_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder";

    /**
     * 查询订单地址
     */
    public static final String OrderUrl = "https://api.mch.weixin.qq.com/pay/orderquery";

    /**
     * 回调地址
     */
    public final static String NOTIFY_URL = "https://bgj.blingblingstar.com/Adapter/wechat/NotifyNotice";

    /**
     * 公众号发送模板消息
     */
    public static final String SEND_TEMPLATE_MESSAGE = "https://api.weixin.qq.com/cgi-bin/message/template/send";

    /**
     * 公众号 Token
     */
    public static final String GET_ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token";
}
